<!doctype html>
<html lang="en">
    <head>
    <title>{{ the_title }}</title>
    <link rel="stylesheet" type="text/css" href="/static/app.css" />
    <style>
    body {
        text-align: center;
          margin: auto;
          background-image: linear-gradient(to right, #e9defa,#fbfcdb);
          border:8px solid #a4c2f4;
          width: 900px;
          height: 700px;
        }
    p{ font-family:微软雅黑,Times,serif;
        font-size: 17px;
        font-weight: bolder;
        color: #a4c2f4;
        margin-top:       3%;
        margin-bottom:    3%;
        margin-left:      5%;
        margin-right:     5%;
    }
    h3{color: #fafcff;}
    h2{ margin-top:       4%;
        color: #000000;
        font-family: 印品雅宋简 中黑（非商用）;
        }
    table{background-color: #fafcff;
        color: #33495f;
        font-family: "微软雅黑",Times,serif;
        font-weight: bolder;
        opacity:0.9;
        border: 4px solid #8fd3ed;
        margin: auto;
        text-align: center;
      box-shadow: 0 1px 3px rgba(0,0,0,0.2);
      display: table;
      @media screen and (max-width: 580px)
        display: block;
        }
    th {
	background-color: #59d5a2;
    opacity: 0.7;
	color: white;
	font-weight: bold;
    text-align: center;
    padding: 10px;
	border: 4px solid #8fd3ed;
	font-size: 18px;
	}
   td{
	padding: 10px;
	border: 4px solid #8fd3ed;
	text-align: left;
	font-size: 14px;
	}
   input[type=text] {color:#000000;}
   input[type=submit] {color: #fafcff;}

{#天气查询功能#}
html { box-sizing: border-box; }
html *,
html *:before,
html *:after { box-sizing: inherit; }

.icon {
  position: relative;
  display: inline-block;
  width: 12em;
  height: 10em;
  font-size: 1em; /* control icon size here */
}

.cloudhh {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 3.6875em;
  height: 3.6875em;
  margin: -1.84375em;
  background: currentColor;
  border-radius: 50%;
  box-shadow:
    -2.1875em 0.6875em 0 -0.6875em,
    2.0625em 0.9375em 0 -0.9375em,
    0 0 0 0.375em #fff,
    -2.1875em 0.6875em 0 -0.3125em #fff,
    2.0625em 0.9375em 0 -0.5625em #fff;
}
.cloudhh:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -0.5em;
  display: block;
  width: 4.5625em;
  height: 1em;
  background: currentColor;
  box-shadow: 0 0.4375em 0 -0.0625em #fff;
}
.cloudhh:nth-child(2) {
  z-index: 0;
  background: #fff;
  box-shadow:
    -2.1875em 0.6875em 0 -0.6875em #fff,
    2.0625em 0.9375em 0 -0.9375em #fff,
    0 0 0 0.375em #fff,
    -2.1875em 0.6875em 0 -0.3125em #fff,
    2.0625em 0.9375em 0 -0.5625em #fff;
  opacity: 0.3;
  transform: scale(0.5) translate(6em, -3em);
  animation: cloud 4s linear infinite;
}
.cloudhh:nth-child(2):after { background: #fff; }

@keyframes cloud {
  0% { opacity: 0; }
  50% { opacity: 0.3; }
  100% {
    opacity: 0;
    transform: scale(0.5) translate(-200%, -3em);
  }
}

        </style>
    </head>

    <body style="background: linear-gradient(to right, {{ the_color1 }}, {{ the_color2 }})">
    {#使用Javascript代码#}
    <script language=javascript>
    function all_results() {
        document.search.action = "http://127.0.0.1:5000/all_results";
        document.search.submit();
    }
    </script>

        {% block body %}

        {% endblock %}
    </body>
</html>
